package sample;

import javafx.scene.layout.StackPane;

class MoveAnime {

    StackPane mPane;
    double mFromX;
    double mFromY;
    double mMoveX;
    double mMoveY;

    MoveAnime(Controller ctrl, StackPane pane, int dx, int dy) {
        mPane = pane;
        mFromX = pane.getLayoutX();
        mFromY = pane.getLayoutY();
        mMoveX = ctrl.width / ctrl.size * dx;
        mMoveY = ctrl.height / ctrl.size * dy;
    }

}
